<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <!--concat(): 将两个或者多个字符串链接 
        string.concat(字符串1,字符串2,...,字符串n)
    -->
    <script>
        var text1 = "这是第一段话",
            text2 = "这是第二段话",
            text3 = "这是第三段话",
            text4 = text1.concat(text2, text3);

        console.log(text4);
    </script>
</body>

</html>